<!-- src/components/Footer.vue -->
<template>
  <footer class="site-footer">
    <div class="footer-content">
      <div class="footer-section">
        <h3>关于我们</h3>
        <p>乒乓社区是一个专为乒乓球爱好者打造的交流平台。</p>
      </div>
      <div class="footer-section">
        <h3>联系我们</h3>
        <p>Email: contact@tabletennisforum.com</p>
        <p>QQ群: 123456789</p>
      </div>
      <div class="footer-section">
        <h3>友情链接</h3>
        <ul>
          <li><a href="https://www.ittf.com/" target="_blank">国际乒联 (ITTF)</a></li>
          <li><a href="http://www.ctta.cn/" target="_blank">中国乒协</a></li>
        </ul>
      </div>
    </div>
    <div class="footer-bottom">
      <p>&copy; 2025 乒乓社区. All rights reserved.</p>
    </div>
  </footer>
</template>

<script setup>
// 如果需要，可以在这里引入 Pinia Store 或其他服务
</script>

<style scoped>
.site-footer {
  background-color: #333;
  color: #fff;
  padding: 2rem 0 1rem 0;
  margin-top: auto; /* Push footer to bottom */
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-section {
  flex: 1;
  min-width: 200px;
  margin-bottom: 1rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: #409eff;
}

.footer-section p, .footer-section ul {
  margin: 0.5rem 0;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #555;
  margin-top: 1rem;
}

.footer-bottom p {
  margin: 0;
  color: #aaa;
}
</style>
